﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TripsLogic.controller;

namespace TripsLogic.master.uc
{
    public partial class ucFooter : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                loadLang();
                loadSetting();
            }
        }

        private void loadSetting()
        {

        }

        private void loadLang()
        {
            litGetInTouch.Text = LangController.getLng("litGetInTouch.Text", "Get in touch");
            string fbLink = SysIniController.getSetting("litFacebook.Link", "#");
            litFacebook.Text = "<li><a href='" + fbLink + "' class='normaltip' title='Facebook'><img src='images/icon2.jpg' alt=''></a></li>";
            string rssLink = SysIniController.getSetting("litRss.Link", "#");
            litRss.Text = "<li><a href='" + rssLink + "' class='normaltip' title='Rss'><img src='images/icon3.jpg' alt=''></a></li>";

            litTitle.Text = LangController.getLng("litWebTitle.Text", "TripsLogic");
            litYear.Text = DateTime.Now.Year.ToString();
            litPrivacyPolicy.Text = LangController.getLng("litPrivacyPolicy.Text", "Privacy policy");
        }
    }
}